From: Carlos Garnacho Date: Fri, 10 Feb 2023 14:07:50 +0000 (+0100) Subject: window-tracker: Only emit ::tracked-windows-changed on title changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~42 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=41c91c7a3b7f186720a0a518ef2211cb744421f3;p=gnome-shell.git window-tracker: Only emit ::tracked-windows-changed on title changes Since commit a1d650ce27, window title changes are listened for in the ShellWindowTracker in order to emit ::tracked-windows-changed when there are window title changes. The rest of the things that happen in between (removing the window from a ShellApp, possibly have it destroyed, and possibly creating a new ShellApp to re-insert the window) are superfluous and even result in the altTab switcher popup ending up confused about the applications available. Only emit the signal so changes can be followed on D-Bus, but avoid the ShellApp fiddling otherwise. Fixes: a1d650ce27 - window-tracker: Emit 'tracked-windows-changed' on title changes Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6385 Part-of: --- diff --git a/src/shell-window-tracker.c b/src/shell-window-tracker.c index df357f81b..bcd2bd4d8 100644 --- a/src/shell-window-tracker.c +++ b/src/shell-window-tracker.c @@ -530,7 +530,7 @@ on_title_changed (MetaWindow *window, gpointer user_data) { ShellWindowTracker *self = SHELL_WINDOW_TRACKER (user_data); - tracked_window_changed (self, window); + g_signal_emit (self, signals[TRACKED_WINDOWS_CHANGED], 0); } static void